/*
 * psthread.h
 *
 *  Created on: 2011-4-27
 *      Author: chenl
 */

#ifndef PSTHREAD_H_
#define PSTHREAD_H_

#include "common/common_thread.h"
#include "common/common_def.h"
#include "common/common_type.h"
#include "timer/timermgt.h"
#include "logengine/buffedlog.h"
#include "global.h"


class CPSThread : public CThread
{
public:
	CPSThread();
	virtual ~CPSThread();

	int32_t Initialize();
	int32_t Uninitialize();

	virtual void Execute();

	bool ProcessTimer();
	void OnTimer(CTimerMgt::TimerID timerID, Timer& timer);

public:
	CPSThreadLog& logEngine;

private:
	bool bIsModified_;
};

#endif /* PSTHREAD_H_ */
